<?php

namespace app\admin\validate;

use think\Validate;

class SysConfig extends Validate
{
    //字段规则
    protected $rule = [
        'according' => 'require',
    ];

    //验证器提示信息
    protected $message = [
        'according.require' => 'according不能为空',
    ];

    //使用场景
    protected $scene = [
        'edit'   => ['name' => 'according']
    ];
}